//
//  E7StageData.h
//  EndlessBattle
//
//  Created by cc on 12-4-21.
//  Copyright (c) 2012年 PalmGame. All rights reserved.
//

#ifndef EndlessBattle_E7StageData_h
#define EndlessBattle_E7StageData_h

#include "E7GameDefine.h"

class CE7StageData
{
public:
    CE7StageData() ;
    ~CE7StageData() ;

public:
    static CE7StageData* GetStageData() ;

public:
    bool HasData()     { return m_bIsSaved ; }
    int  GetMapCount() { return m_nMapCount ; }

public:
    void SetStageLevel(int nID, int point) ;
    int GetStageLevel(int nID) ;

//    void AddCompleteCount() ;
    void SetCompleteCount(int count) ;
    int GetCompleteCount() ;

public:
    void SaveMapData(int nID, int mapid, char* mapname, int mapsize, int* pData) ;
    void LoadMapData(int nID, int& mapid, char* mapname, int& mapsize, int** pData) ;

private:
    bool    m_bIsSaved ;
    int     m_nMapCount ;
};

extern CE7StageData* s_pStageData ;

#endif

























